﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms.Design;

namespace Ajaxna.Designers
{
    /// <summary>
    /// This class provides an implementation of the IWindowsFormsEditorService interface.
    /// This class can be used when a class deriving from ControlDesigner (or similar) needs to
    /// implement the IServiceProvider interface. The GetService method can then return an instance of
    /// this class when an IWindowsFormsEditorService is requested by the clinet.
    /// 
    /// Note: ONLY ShowDialog is implemented (no drop down tey I'm afraid).
    /// </summary>
    public class WindowsFormsEditorService : IWindowsFormsEditorService
    {
        #region IWindowsFormsEditorService Members

        public void CloseDropDown()
        {
            throw new NotImplementedException();
        }

        public void DropDownControl(System.Windows.Forms.Control control)
        {
            throw new NotImplementedException();
        }

        public System.Windows.Forms.DialogResult ShowDialog(System.Windows.Forms.Form dialog)
        {
            return dialog.ShowDialog();
        }

        #endregion
    }
}
